<?php
/* @var $this ForumController */
/* @var $model Forum */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'forum-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model6); ?>

	<?php /*?><!--<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>--><?php */?>
    <?php /*?><?php $questions = ForumQuestionAssignment::model()->findAllByPk($model->id); ?>
    <?php if($questions == null): ?>
    <?php $list = ForumType::model()->findAllByPk(1); ?>
    <?php else: ?>
    <?php $list = ForumType::model()->findAll(); ?>
    <?php endif; ?>
    <?php $model5->id = $model->id; ?><?php */?>
	<!--<div class="row">
    	<?php /*?><?php echo $form->dropDownList($model5, 'title', CHtml::listData($list, 'id', 'title'), array('class'=>'my-drop-down', 'options'=>array('1'=>array('selected'=>"selected")))); ?>
        <?php if(ForumQuestionAssignment::model()->findAllByAttributes(array('tutorial_id'=>$model->id)) != null): ?>
        <?php echo $form->dropDownList($model7, 'id', CHtml::listData(Forum::model()->findAll(), 'id', 'id'), array('class'=>'my-drop-down', 'options'=>array('1'=>array('selected'=>"selected")))); ?>
        <?php endif; ?><?php */?>
    </div>-->
		<?php echo $form->hiddenField($model6, 'id', array('id'=>$model->id))?>
	<div class="row">
		<?php echo $form->labelEx($model6,'Content'); ?>
		<?php echo $form->textArea($model6,'Content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model6,'Content'); ?>
	</div>

	<?php /*?><!--<div class="row">
		<?php echo $form->labelEx($model,'answer_count'); ?>
		<?php echo $form->textField($model,'answer_count'); ?>
		<?php echo $form->error($model,'answer_count'); ?>
	</div>--><?php */?>

	<?php /*?><!--<div class="row">
		<?php echo $form->labelEx($model,'DateCreated'); ?>
		<?php echo $form->textField($model,'DateCreated'); ?>
		<?php echo $form->error($model,'DateCreated'); ?>
	</div>--><?php */?>

	<?php /*?><!--<div class="row">
		<?php echo $form->labelEx($model,'LastUpdate'); ?>
		<?php echo $form->textField($model,'LastUpdate'); ?>
		<?php echo $form->error($model,'LastUpdate'); ?>
	</div>--><?php */?>

	<?php /*?><!--<div class="row">
		<?php echo $form->labelEx($model,'user_id'); ?>
		<?php echo $form->textField($model,'user_id'); ?>
		<?php echo $form->error($model,'user_id'); ?>
	</div>--><?php */?>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model6->isNewRecord ? 'Post' : 'Post'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->